<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    function fn(){
        console.log(arguments, this);
        return "这是原函数的返回值"
    }
    fn("hello");

    console.log("-------")
    
    const res1 = fn.call("hello", "world", 123,true, false, "hahha");
    console.log(res1);
    
    console.log("-------")
    
    const res2 = fn.apply("hello", ["world", 123, true, "hahaa"]);
    console.log(res2);

    console.log("-------")

    const res = fn.bind("hello", "world");
    console.log(res);
    res();
    
</script>
</html>
